﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Car:Animal,IClimb
    {
        public override void Eat()
        {
            Console.WriteLine("{0}爱吃猫粮",this.Name);
        }
        public void Climb()
        {
            Console.WriteLine("{0}会上树",this.Name);
        }
        public Car() { }
        public Car(string name):base(name)
        { 
            
        }
    }
}
